<template>
    <!-- mine/pages/einvoiceChargingOrder/einvoiceChargingOrder.wxml -->
    <view class="conter">
        <view v-if="list.length" class="conter-in">
            <view class="list">
                <view class="list-conter" v-for="(item, index) in list" :key="index">
                    <view class="list-conter-left">
                        <view>
                            <view class="left-name">订单号：{{ item.busId }}</view>
                            <view class="left-time">下单时间：{{ item.createTime }}</view>
                        </view>
                    </view>

                    <view class="list-conter-right">￥{{ (item.actualPowerBalance + item.actualServiceBalance) / 100 }}</view>
                </view>
                <!-- </van-cell> -->
            </view>
        </view>
    </view>
</template>

<script>
'use strict';

// exports.__esModule = true; // mine/pages/einvoiceChargingOrder/einvoiceChargingOrder.ts

var https_1 = require('./../../../api/https.js');
export default {
    data() {
        return {
            billIds: [],
            list: []
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {
        if (options.billIds) {
            this.billIds=JSON.parse(options.billIds)
        }
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {
        this.getInvoiceBillList();
    },
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {
        getInvoiceBillList: function () {
            var that = this;
            https_1
                .getInvoiceBillList({
                    billIds: that.billIds
                })
                .then(function (res) {
                    if (res.code == 0) {
                        var data = res.data;
                        that.list=data
                    }
                })
                ['catch'](function () {});
        }
    }
};
</script>
<style lang="less">
@import url('./einvoiceChargingOrder.less');
</style>
